//
//  ISRootViewController.m
//  IdeaScale
//
//  Created by Jeremy Przasnyski on 11/6/09.
//  Copyright 2009 Cavoort, LLC. All rights reserved.
//
#import "ISRootViewController.h"
#import "ISFeedback.h"
#import "IdeaScaleConstants.h"

@implementation ISRootViewController
@synthesize feedbackController = _feedbackController;

-(void)dealloc {
	[_feedbackController release];
	[super dealloc];
}

-(void)viewDidAppear:(BOOL)animated {
	if (_feedbackController) { 
		// This block will be called when the feedback controller disappears.
		[self setFeedbackController:nil];
	}
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
	return YES;
}

-(IBAction)feedback:(id)sender {
	if (LOG) {NSLog(@"%s",__FUNCTION__);}
	[self setFeedbackController:[[ISFeedback sharedInstance] pushOntoViewController:self]];
}

@end
